const express = require('express');

const app = express();

app.get('/', function (req, res) {
  res.send('hello world')
})

app.post('/', function (req, res) {
  res.send('Got a POST request')
})

app.put('/', function (req, res) {
  res.send('Got a put request')
})

app.delete('/', function (req, res) {
  res.send('Got a delete request')
})

app.listen(9000, () => {
  console.log('demo1 start');
})